package com.rpframework.core.mybatis.mapper.plugin.template;

import java.util.Set;

/**
 * 结果集
 * Created by jump on 2016/7/6.
 */
public class ResultMap {

    /**
     * 类型
     */
    private String type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    /**
     * 主键
     */
    private Id idResult;

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public Id getIdResult() {
        return idResult;
    }

    public void setIdResult(Id idResult) {
        this.idResult = idResult;
    }

    /**
     * 其他列
     */
    private Result result;

    /**
     * 结果集
     */
    public class Result {
        private Set<Map> maps;

        public Set<Map> getMaps() {
            return maps;
        }

        public void setMaps(Set<Map> maps) {
            this.maps = maps;
        }
    }

    /**
     * 主键
     */

    private String id;

    /**
     * 主键
     */
    public class Id {
        public Id(Map map) {
            this.map = map;
        }

        public Id() {
        }

        /**
         * 结果集
         */

        private Map map;

        public Map getMap() {
            return map;
        }

        public void setMap(Map map) {
            this.map = map;
        }
    }

    public class Map {
        public Map() {
        }

        public Map(String column, String property) {
            this.column = column;

            this.property = property;
        }

        /**
         * 列
         */
        private String column;

        public String getProperty() {
            return property;
        }

        public void setProperty(String property) {
            this.property = property;
        }

        public String getColumn() {
            return column;
        }

        public void setColumn(String column) {
            this.column = column;
        }

        /**
         * 属性
         */
        private String property;
    }
}
